package com.jingtai.core.entity.admin;


import com.baomidou.mybatisplus.annotation.TableName;
import com.jingtai.core.entity.BaseEntity;
import com.jingtai.validate.swagger.CApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

import io.swagger.annotations.*;


import java.util.Date;

/**
 * 菜单表
 * 
 * @author sunlaiqian
 * @date 2020-12-02 15:08:11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_menu")
@ApiModel(value = "菜单表", description = "菜单表")
public class Menu  extends BaseEntity implements Serializable {

	/**
	 * 级别
	 */
	@CApiModelProperty(value = "级别",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer level;

	/**
	 * 一级id
	 */
	@CApiModelProperty(value = "一级id",groups = {Create.class,Update.class})
	private Long levelOfOne;

	/**
	 * 菜单名称
	 */
	@CApiModelProperty(value = "菜单名称",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private String menuName;

	/**
	 * 链接
	 */
	@CApiModelProperty(value = "链接",groups = {Create.class,Update.class})
	private String menuUrl;

	/**
	 * 权重 值越大排序越靠前
	 */
	@CApiModelProperty(value = "权重 值越大排序越靠前",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer weight;

	/**
	 * 启用状态 0：已启用1：未启用
	 */
	@CApiModelProperty(value = "启用状态 0：已启用1：未启用",required = true,cNotEmpty = true,groups = {Create.class,Update.class})
	private Integer enableState;


}
